<?php

namespace App\Command;

use Hyperf\Command\Annotation\Command;
use Hyperf\Command\Command as HyperfCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

#[Command]
class TestCommand extends HyperfCommand
{
    /**
     * 执行的命令行
     */
    protected ?string $name = 'test:hello';

    public function handle()
    {
        $this->line("hello word",'info');
        $this->line("hello 李思思",'error');
    }

}